package Code.Basic.Entity.Attributes;

public class Armor
{
	private float percentReduction;
	private float straightReduction;
	
	public Armor(float percent, float straight)
	{
		percentReduction = percent;
		straightReduction = straight;
	}
	
	public float reducedDamage(float damage)
	{
		return ((1 - percentReduction) * (damage - straightReduction));
	}
}
